package com.wn.cloud.consumer;

import com.wn.cloud.rule.MySelfRule;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.context.annotation.ComponentScan;

@MapperScan("com.wn.cloud.consumer.mapper")
@ComponentScan("com.wn.cloud.common")
@ComponentScan("com.wn.cloud.consumer")
@EnableEurekaClient
@RibbonClient(name = "cloud-payment-service", configuration = MySelfRule.class)
@SpringBootApplication
public class CloudConsumerEureka {
    public static void main(String[] args) {
        SpringApplication.run(CloudConsumerEureka.class, args);
    }
}
